package nc.ui.cmp.originalbalance;

import nc.cmp.utils.CmpUtils;

public class BalanceFactory {
	
	public static ImportStrategy createImportStrategy(int nodeCode) {
		ImportStrategy strategy = null;
		switch(nodeCode) {
		case 0:
			strategy = CmpUtils.makeObj(HandCashImportStrategy.class);
			break;
		case 1:
			strategy = CmpUtils.makeObj(BankAccImportStrategy.class);
			break;
		case 2:
			strategy = CmpUtils.makeObj(NoteTypeImportStrategy.class);
			break;
		}
		return strategy;
	}
}
